package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Member;

import java.util.List;


public interface MemberDao {
    // 获取所有会员
    public List<Member> findAll();
    // 根据条件查询会员
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    // 我自己写的方法(获取本月及以前的会员)
    Integer findMemberCountByMouth(String date);
    // 获取之前的会员数
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    // 获取当日注册会员数
    public Integer findTodayNewMember();
    // 当周注册新会员
    public Integer findThisWeekNewMember();
    // 本月新会员
    public Integer findThisMonthNewMember();

}
